package com.bianguo.android.functiondemo.view.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;

import com.bianguo.android.functiondemo.utils.MLog;

public class TouchView extends android.support.v7.widget.AppCompatTextView {
    public TouchView(Context context) {
        super(context);
    }

    public TouchView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TouchView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {
        MLog.mLog("************ dispatchTouchEvent ****************");
        return super.dispatchTouchEvent(event);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        MLog.mLog("************ onTouchEvent ****************");
        return super.onTouchEvent(event);
    }
}
